module.exports = app => {
    const { STRING, INTEGER } = app.Sequelize;

    const TopicLessonPerson = app.model.define('topic-lesson-person', {
        userId: {
            type: STRING,
            allowNull: false,
        },
        lessonId: {
            type: INTEGER,
            allowNull: false,
        },
    }, {
        timestamps: true,
        underscored: false,
    });

    return TopicLessonPerson;
};
